home *** CD-ROM | disk | FTP | other *** search
- package java.sql;
-
- import java.util.Iterator;
- import java.util.NoSuchElementException;
-
- final class SQLException$1 implements Iterator<Throwable> {
- SQLException firstException;
- SQLException nextException;
- Throwable cause;
- // $FF: synthetic field
- final SQLException this$0;
-
- SQLException$1(SQLException var1) {
- this.this$0 = var1;
- this.firstException = this.this$0;
- this.nextException = this.firstException.getNextException();
- this.cause = this.firstException.getCause();
- }
-
- public boolean hasNext() {
- return this.firstException != null || this.nextException != null || this.cause != null;
- }
-
- public Throwable next() {
- Object var1 = null;
- if (this.firstException != null) {
- var1 = this.firstException;
- this.firstException = null;
- } else if (this.cause != null) {
- var1 = this.cause;
- this.cause = this.cause.getCause();
- } else {
- if (this.nextException == null) {
- throw new NoSuchElementException();
- }
-
- var1 = this.nextException;
- this.cause = this.nextException.getCause();
- this.nextException = this.nextException.getNextException();
- }
-
- return (Throwable)var1;
- }
-
- public void remove() {
- throw new UnsupportedOperationException();
- }
- }
-